<?php
define('DB_USERNAME', 'igha');
define('DB_PASSWORD', 'igha');
define('TNS', 'oci:dbname=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 172.21.129.10)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME=orcl)))');

class SqlHelper
{
	static public function Fetch($SQL)
	{ 
		try
		{
			$Conn = new PDO(TNS,DB_USERNAME,DB_PASSWORD);
			return $Conn->query($SQL);
		}
		catch(PDOException $e){
			die("Error!: ".$e->getMessage()."<br/>");
		}
		$Conn=null;
	}
}
?>
